<?php
/**
 * Created by PhpStorm.
 * User: tsa
 * Date: 24/12/2013
 * Time: 10:00 πμ
 */

//Init::_load("Auth");
//$con=mysqli_connect("127.0.0.1","MSC_user","MSC_user1","MSc_m102");
//$con=mysqli_connect("127.0.0.1","tsamscuser","tsamscuser","tsalik_m102");


$con=mysqli_connect("localhost",SQL_USER,SQL_PASSWORD,SQL_BDD);
// Check connection
if (mysqli_connect_errno())
{
    echo "Failed to connect to MySQL: " . mysqli_connect_error();
}

if (!mysqli_set_charset($con, "utf8")) {
    echo "Mysqli interface : Error loading character set utf8: %s\n";
}
//$authid = Auth::get_info('id');
//if (empty($authid))
//{
require_once(__DIR__.'/../../App/Library/Auth/Auth.php');
$authid = isset($_SESSION['Auth']) ? Auth::get_info('id') : 1;
//}